x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}().
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Jun 2009 09:46:21 +0000 (10:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Jun 2009 09:46:21 +0000 (10:46 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c

index 154bc270f8e9f8e5ef6a0c05ca0e59ea81090406..e24e0bdd9a64b202b526613fca7977849610f7b0 100644 (file)
@@ -877,7 +877,7 @@ void start_svm(struct cpuinfo_x86 *c)
 {
     static bool_t bootstrapped;
 
-    if ( !test_and_set_bool(bootstrapped) )
+    if ( test_and_set_bool(bootstrapped) )
     {
         if ( hvm_enabled && !svm_cpu_up(c) )
         {
index adab2a93e8b47a4be7f3cbd954aeb62a2fe972dc..72a324c7c30cb3a24eda780a3d04ca02179f0797 100644 (file)
@@ -1407,7 +1407,7 @@ void start_vmx(void)
 
     vmx_save_host_msrs();
 
-    if ( !test_and_set_bool(bootstrapped) )
+    if ( test_and_set_bool(bootstrapped) )
     {
         if ( hvm_enabled && !vmx_cpu_up() )
         {